#ifndef SRLOGINPAGE_H
#define SRLOGINPAGE_H

#include <QWidget>

class QLineEdit;
class QPushButton;

class SRLoginPage : public QWidget
{
    Q_OBJECT
public:
    explicit SRLoginPage(QWidget *parent = 0);
    ~SRLoginPage(void);

Q_SIGNALS:
    void sigLogin(const QString &, const QString &);
    void sigLoginFinshed(const QString &, const QString &);

    void sigRegister(void);
    void sigForgetPswd(void);

public Q_SLOTS:
    void onLogin(void);

protected:
    virtual void keyPressEvent(QKeyEvent *event);
private:

    QLineEdit* editUser_;
    QLineEdit* editPswd_;
    QLineEdit* editConfirmPswd_;
    QPushButton* btnLogin_;
    QPushButton* btnRegister_;
};

#endif // SRLOGINPAGE_H
